Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retry attempts fixed. Exception throwing for the retry() method unified for all cases #126

Open
wants to merge 3 commits into
base: 1.x
Choose a base branch
from

Conversation

alkinoy
Copy link

@alkinoy alkinoy commented Jan 9, 2024

Change Log

Added

Fixed

  • Num of retry attempts fixed
  • Exception throwing condition unified

Changed

Updated

Removed

Deprecated

Security


Description

Currently retry argument is used as total attempts counter.
when we set retry argument to 0 - 1 execution attempt will be performed (as expected)
when we set retry to 1 - still 1 execution attempt will be performed, but 2 expected (in case first attempt fails we expect it will be retried 1 time).
same for the all other values - in fact one less retries will be performed.

In case we setup 0 retry attempts - conditions for the exception throwing will be different from case when we setup retires. It was fixed to unify behavior.

@norberttech
Copy link
Member

hey @alkinoy it seems that some tests are failing, could you please look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants